import request from '@/util/request'
import globalConfig from '@/config'

// 获取列表
export function getAddressList(query) {
	return request({
	    url: '/user/v1/ajax/takeaddress/',
	    method: 'GET',
      params: query
	})
}

// 新增
export function addAddress(query) {
	return request({
	    url: '/user/v1/ajax/takeaddress/',
	    method: 'POST',
      data: query
	})
}

// 删除
export function delAddress(query) {
	return request({
	    url: '/user/v1/ajax/deleteAddress/',
	    method: 'POST',
      data: query
	})
}

// 编辑
export function editAddress(query) {
	return request({
	    url: '/user/v1/ajax/updateAddress/',
	    method: 'POST',
      data: query
	})
}
